<%-- 
    Document   : review
    Created on : Jun 3, 2011, 9:34:31 AM
    Author     : MongKieu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
            /*==================================================================
            PayPal Express Checkout Call
            ===================================================================
             */
            /*
            This step indicates whether the user was sent here by PayPal
            if this value is null then it is part of the regular checkout flow in the cart
             */

            String token = session.getAttribute("TOKEN").toString();
//String token = request.getAttribute("token").toString();
            if (token != null) {
%>
<%@include file="paypalfunctions.jsp" %>
<%
                /*
                '------------------------------------
                ' Calls the GetExpressCheckoutDetails API call
                '
                ' The GetShippingDetails function is defined in PayPalFunctions.jsp
                ' included at the top of this file.
                '-------------------------------------------------
                 */

                HashMap nvp = GetShippingDetails(token, session);
                String strAck = nvp.get("ACK").toString();
                
            }

%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Xác nhận thanh toán bằng paypal</h1>
        <form action='payPalconfirm.jsp' METHOD='POST'>
            <input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='Check out with PayPal'/>
        </form>
    </body>
</html>
